package com.example.design.factory.abstractfactory;

import com.example.design.factory.factorymethod.Animal;

public class Client {
    public static void main(String[] args) {
        AnimalFactory factory = new AnimalAFactory();
        Animal cat = factory.createCat();
        cat.sound();
        Animal dog = factory.createDog();
        dog.sound();
    }
}
